package com.songlanyun.modules.studying.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.songlanyun.common.utils.PageUtils;
import com.songlanyun.modules.studying.entity.Studying;
import com.songlanyun.modules.studying.model.StudyingVO;
import com.songlanyun.modules.studyingType.entity.StudyingType;

import java.util.List;
import java.util.Map;

public interface StudyingService extends IService<Studying> {

    PageUtils queryPage(Map<String, Object> params);

    Studying loadById(Long id, boolean b);

    Studying add(Studying studying);

    Studying update(Studying studying);

    void headerStatus(Integer id, String type);

    List<Studying> studyingLately(Long apiUserId, Integer limit);

    StudyingVO info(Long id, Long userId);

    PageUtils studyingLatelyPage(Map<String, Object> params);

    List<Studying> getRecentlyWatched(Long userId);
}
